import {NgModule, ErrorHandler} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {IonicApp, IonicModule, IonicErrorHandler} from 'ionic-angular';
import {MyApp} from './app.component';

import {StatusBar} from '@ionic-native/status-bar';
import {SplashScreen} from '@ionic-native/splash-screen';

import {Contacts, Contact} from '@ionic-native/contacts';
import {Camera} from '@ionic-native/camera';
import {PhotoLibrary} from "@ionic-native/photo-library";
import {FileChooser} from "@ionic-native/file-chooser";
import { DetailProvider } from '../providers/detail/detail';
import {HttpModule} from "@angular/http";
import { ContactsProvider } from '../providers/contacts/contacts';
import {IonicStorageModule} from "@ionic/storage";


@NgModule({
    declarations: [
        MyApp,
    ],
    imports: [
        BrowserModule,
        HttpModule,
        IonicModule.forRoot(MyApp,{}),
        IonicStorageModule.forRoot()
    ],
    bootstrap: [IonicApp],
    entryComponents: [
        MyApp,
    ],
    providers: [
        StatusBar,
        SplashScreen,
        Contacts, Contact,
        Camera,
        PhotoLibrary,
        FileChooser,
        {provide: ErrorHandler, useClass: IonicErrorHandler},
    DetailProvider,
    ContactsProvider
    ]
})
export class AppModule {
}
